package com.zutassociation.system.domain;

import com.zutassociation.common.core.domain.BaseEntity;
import com.zutassociation.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 评论表
 * @author 黄玉东
 * @version 1.0
 * @date 2021/5/10 9:13
 */
public class Reply extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /*
    * 评论ID
    */
    private Long replyId;

    /*
    * 评论用户id
    */
    private Long fromId;

    /*
    * 评论目标用户ID
    */
    private Long toId;

    /*
    * 社联论坛ID
    */
    private Long forumId;

    /*
    * 动态ID
    */
    private Long trendsId;

    /*
    * 类型（0：论坛回复，1：动态回复）
    */
    private String type;

    /*
    * 评论内容（富文本，型）
    */
    private String replyContent;

    /*
    * 上一条回复ID
    */
    private Long lastId;

    /*
    * 举报（0：无，1：成功，2：不成功）
    */
    private String report;

    /*
    * 状态
    */
    private String status;

    /*
     * 图片
     */
    private String img;

    /*
     * 数据
     */
    private String payload;

    /*
     * 浏览量
     */
    private Long click;
    /*
     * 点赞量
     */
    private Long fabulous;

    /*
     * 评论用户数据
     */
    private SysUser fromUser;

    /*
     * 评论目标用户数据
     */
    private SysUser toUser;

    /*
     * 评论论坛数据
     */
    private Forum forum;

    /*
     * 评论动态数据
     */
    private Trends trends;

    public Long getFabulous() {
        return fabulous;
    }

    public void setFabulous(Long fabulous) {
        this.fabulous = fabulous;
    }

    public Long getReplyId() {
        return replyId;
    }

    public void setReplyId(Long replyId) {
        this.replyId = replyId;
    }

    public Long getFromId() {
        return fromId;
    }

    public void setFromId(Long fromId) {
        this.fromId = fromId;
    }

    public Long getToId() {
        return toId;
    }

    public void setToId(Long toId) {
        this.toId = toId;
    }

    public Long getForumId() {
        return forumId;
    }

    public void setForumId(Long forumId) {
        this.forumId = forumId;
    }

    public Long getTrendsId() {
        return trendsId;
    }

    public void setTrendsId(Long trendsId) {
        this.trendsId = trendsId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getReplyContent() {
        return replyContent;
    }

    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    public Long getLastId() {
        return lastId;
    }

    public void setLastId(Long lastId) {
        this.lastId = lastId;
    }

    public String getReport() {
        return report;
    }

    public void setReport(String report) {
        this.report = report;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public Long getClick() {
        return click;
    }

    public void setClick(Long click) {
        this.click = click;
    }

    public SysUser getFromUser() {
        return fromUser;
    }

    public void setFromUser(SysUser fromUser) {
        this.fromUser = fromUser;
    }

    public SysUser getToUser() {
        return toUser;
    }

    public void setToUser(SysUser toUser) {
        this.toUser = toUser;
    }

    public Forum getForum() {
        return forum;
    }

    public void setForum(Forum forum) {
        this.forum = forum;
    }

    public Trends getTrends() {
        return trends;
    }

    public void setTrends(Trends trends) {
        this.trends = trends;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("replyId", getReplyId())
                .append("fromId", getFromId())
                .append("toId", getToId())
                .append("forumId", getForumId())
                .append("trendsId", getTrendsId())
                .append("type", getType())
                .append("replyContent", getReplyContent())
                .append("lastId", getLastId())
                .append("report", getReport())
                .append("status", getStatus())
                .append("img", getImg())
                .append("payload", getPayload())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("click", getClick())
                .append("fromUser", getFromUser())
                .append("toUser", getToUser())
                .append("forum", getForum())
                .append("trends", getTrends())
                .append("fabulous", getFabulous())
                .toString();
    }
}
